home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000428_j+usenet@2004.salmi.ch_Wed Oct 27 13:11:40 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!newsfeed.arcor.de!fu-berlin.de!uni-berlin.de!not-for-mail
  2. From: Jukka Salmi <j+usenet@2004.salmi.ch>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: abusing kermit for Xmodem uploads
  5. Date: 27 Oct 2004 15:22:32 GMT
  6. Lines: 72
  7. Message-ID: <2u9spoF28kmiqU1@uni-berlin.de>
  8. X-Trace: news.uni-berlin.de HPVq4ldQNrCTrRCBcRHueA9if+lVYz5kIoBGnXTUcgcxPWIDk=
  9. User-Agent: slrn/0.9.8.0 (NetBSD)
  10. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15212
  11.  
  12. Hi,
  13.  
  14. I'm trying to do Xmodem uploads from a NetBSD 2.0 system to a
  15. Soekris net4501 using kermit and lrzsz. I know how to do this
  16. using tip(1)/cu(1) and lrzsz, but I'd like to achieve the same
  17. using kermit. However, I've never used kermit before...
  18.  
  19. When using tip, I connect to the corresponding serial port, use
  20. the "download" to put the net4501 in "receive mode", use tip's ~C
  21. escape to fork a child process, and start uploading the file
  22. with "lsz -X file".
  23.  
  24. How can I do this with kermit? So far I tried the following kermit
  25. commands:
  26.  
  27. set protocol xmodem-crc download {} {lsx %s} {} {lrx %s} {}
  28. set line /dev/tty00
  29. set speed 9600
  30. set carrier-watch off
  31. set flow-control xon/xoff
  32. send /binary file
  33.  
  34. but this fails:
  35.  
  36. Sending file, 608 blocks: Give your local XMODEM receive command now.
  37. Xmodem sectors/kbytes sent:   0/ 0kRetry 0: Got 52 for sector ACK
  38. Retry 0: NAK on sector
  39. Retry 0: Got 20 for sector ACK
  40. Retry 0: Cancelled
  41.  
  42. Transfer incomplete
  43.  
  44. *************************
  45. SEND-class command failed.
  46.  Packets sent: 0
  47.  Retransmissions: 0
  48.  Timeouts: 0
  49.  Damaged packets: 0
  50.  
  51. HINTS... If the preceding error message does not explain the failure:
  52.  . Did you start a Kermit receiver on the far end?
  53.  . Try it again with SET STREAMING OFF.
  54.  . Try it again with SET PARITY SPACE.
  55.  . As a last resort, give a ROBUST command and try again.
  56. Also:
  57.  . Be sure the source file has read permission.
  58.  . Be sure the target directory has write permission.
  59. (Use SET HINTS OFF to suppress hints.)
  60. *************************
  61.  
  62.  
  63. A diff between stty outputs when using tip and when using kermit
  64. gives:
  65.  
  66. $ diff tty00.kermit tty00.tip 
  67. 5,6c5,6
  68. < iflags: -istrip -icrnl -inlcr -igncr ixon ixoff -ixany imaxbel ignbrk
  69. <       brkint -inpck ignpar -parmrk
  70. ---
  71. > iflags: -istrip -icrnl -inlcr -igncr ixon ixoff ixany imaxbel -ignbrk
  72. >       brkint -inpck -ignpar -parmrk
  73.  
  74.  
  75. Help is appreciated!
  76.  
  77. Regards, Jukka
  78.  
  79. [1] http://www.ohse.de/uwe/software/lrzsz.html
  80.  
  81. -- 
  82. bashian roulette:
  83. $ ((RANDOM%6)) || rm -rf ~